package com.dragon.modules.yuegou.mapper.merchant;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dragon.modules.yuegou.entity.merchant.MerchantShortUrlEntity;
import com.dragon.modules.yuegou.model.merchant.MerchantShortUrl;
import org.springframework.stereotype.Component;

/**
 * 商户短码表 Mapper接口
 *
 * @author pbuilder generated
 * @date 2019-09-29 10:10:16
 * @version 2.0
 */
@Component("merMerchantShortUrlMapper")
public interface MerchantShortUrlMapper extends BaseMapper<MerchantShortUrlEntity> {

    /**
     * 生成短码
     * @param merchantShortUrl
     * @return
     */
    int getGeneratedShortUrlKey(MerchantShortUrl merchantShortUrl);
}
